<!--评论主体-->
{php $qingchundata = \Phpcmf\Service::M()->db->table('muban_qingchun_shezhi')->where('dirname', 'qingchun')->get()->getRowArray();}
	{php $qingchundatas = dr_string2array($qingchundata['setting']);}
	{php $qingchunkaiqi = $qingchundatas['pages']['qingchun_kaiqi'];}
	{php $qingchunzhuse = $qingchundatas['pages']['zhuse'];} 
<link rel="stylesheet" type="text/css" href="{THEME_PATH}assets/comment/css/embed.css" />
<script type="text/javascript">
    var comment_url = '{$post_url}';
    function dr_todo_ajax() {
        {$js}(0, 1);
    }
</script>
<script type="text/javascript" src="{THEME_PATH}assets/comment/embed.js"></script>
{php $fengge = '1_'.MOD_DIR.'_form_son';}
{php $pkbiaoqians = '1_'.MOD_DIR.'_form_son_pk';}
{php $fengges = '1_'.MOD_DIR.'';}
{php $fengge=\Phpcmf\Service::M()->db->table($fengge)->where('id', $id)->get()->getRowArray();}
{php $fengges=\Phpcmf\Service::M()->db->table($fengges)->where('id', $fengge['cid'])->get()->getRowArray();}

{php $shang=\Phpcmf\Service::M()->db->table('1_quan_shezhi')->where('dirname', 'dashang')->get()->getRowArray();}

{php $v = dr_string2array($shang['setting']);}

{php $dashangdata = $v['pages'];}

<!--打赏权限-->
{php $dashangquanxian = $dashangdata['quan_dashang_quanxian'];}
<!--金额-->
{php $dashangyi = $dashangdata['quan_dashang_rmb_yi'];}
{php $dashanger = $dashangdata['quan_dashang_rmb_er'];}
{php $dashangsan = $dashangdata['quan_dashang_rmb_san'];}
{php $dashangsi = $dashangdata['quan_dashang_rmb_si'];}
{php $dashangwu = $dashangdata['quan_dashang_rmb_wu'];}
{php $dashangliu = $dashangdata['quan_dashang_rmb_liu'];}
<!--积分-->
{php $dashangjifenyi = $dashangdata['quan_dashang_jifen_yi'];}
{php $dashangjifener = $dashangdata['quan_dashang_jifen_er'];}
{php $dashangjifensan = $dashangdata['quan_dashang_jifen_san'];}
{php $dashangjifensi = $dashangdata['quan_dashang_jifen_si'];}
{php $dashangjifenwu = $dashangdata['quan_dashang_jifen_wu'];}
{php $dashangjifenliu = $dashangdata['quan_dashang_jifen_liu'];}
<!--开启帖子打赏-->
{php $dashangcomment = $shang['comment'];}
{if $dashangcomment ==1}
    {php $tiedashangkai = $dskg;}
{else}
    
	{php $tiedashangkai = 1;}
{/if}

{if $dashangquanxian ==0}
<!--全站统一开启-->
    <!--开关-->
    {php $dashangkaiguan = $dashangdata['quan_dashang_kaiguan'];}
    {php $dashangpinglunkaiguan = $dashangdata['quan_dashang_kaiguan_pinglun'];}
{elseif $dashangquanxian ==1}
<!--根据圈子管理-->
	<!--开关-->
	{if $index['dashangkai'] == 1}
		{php $dashangkaiguan=0;}
	{else}
		{php $dashangkaiguan=1;}
	{/if}
{elseif $dashangquanxian ==2}
<!--根据作者管理-->
    {php $dashanguidkai = \Phpcmf\Service::M()->db->table('member_data')->where('id', $uid)->get()->getRowArray();}
    {if $dashanguidkai['dashangkaiguan'] ==1}
		{php $dashangkaiguan=0;}
	{else}
		{php $dashangkaiguan=1;}
	{/if}
{/if}
{php $dashangpinglunkaiguan = $dashangdata['quan_dashang_kaiguan_pinglun'];}
<!--打赏模式-->
{php $dashangmoshi = $dashangdata['quan_dashang_moshi'];}
<!--$dashangkaiguan==0开，1关闭-->
<!--$fufeils==1人民币，2积分，-->

{php $jifen = $shangjifens['jifen'];}
{php $jiage = $shangjifens['jiage'];}

{php $v = dr_string2array($shang['value']);}
{count action=table table=1_quan_dashang_buy tid=$id return=dashangtongji}

<div id="ds-reset">
	<!--第二层评论-->
	<div class="ds-replybox" id="dr_post_form_erji" style="display:none;">
		<form class="ds_form_post form" method="post" id="myform_comment_erji">
			{dr_form_hidden()}
		    <div class=" d-dibu-pinglun-200 {if $_GET['tan']=='1'} {else} d-container d-kuang-pinglun{/if}" {if $_GET['tan']=='1'} style="width: 370px;margin-left: -10px;" {else} {/if}>
		    	<div class="row ">
		    		<div class="{if $fengges['fengge'] == 1}col-md-8{else}col-md-8{/if} col-xs-12 ">
		    			<div class="username">
		    			</div>
		    			<div class="d-xia-10 d-wenzi-18 pull-right d-zuoyou-20 d-shang-10" onclick="dr_reply_show_erji()"><i class="bi bi-x-circle-fill"></i></div>
		    			<div class="d-beijing-chengse d-neikuang-30-30 d-yuanjiao-bianhua-10-10 {$_GET['tan']}">
		    				<div class=" d-yuanjiao-10 ">
		    					<div class="d-beijing-chengse ">
		    							<input type="text" placeholder="content" class="dierceng">
		    							<div class="d-kuan d-buhuanhang ">
		    								<div class="d-kuan-40 ">
		    									<img src="{dr_avatar($member.uid)}" width="38" class="d-yuanjiao-50">
		    								</div>
		    								<div class="d-kuan d-zuo-10 d-you-10">
		    									<textarea class="J_CmFormField form-control" name="content" placeholder="说说您的想法…"></textarea>
		    								</div>
		    								<div class="d-kuan-50">
		    									<div class="">
		    										<button class="d-fabu" type="button" onclick="dr_post_comment_erji()">
		    											<img src="{HOME_THEME_PATH}{MOD_DIR}/img/fabu1.png" width="35" class="d-yuanjiao-10"/>
		    										</button>
		    									</div>
		    									
		    								</div>
		    								<div class="d-clear"></div>
		    							</div>
		    							
		    							<div class="d-clear"></div>
		    							<div class="d-kuan">
		    								<div class="d-shang-5 d-zuo-50">
		    									<a class="ds-toolbar-button ds-add-emote" onclick="dr_show_bq()" title="插入表情"></a>
		    								</div>
		    							</div>
		    							<div class="ds-clear"></div>
		    					</div>
		    				</div>
		    			</div>
		    		</div>
		    	</div>
		    </div>
		    <div class="ds-clear"></div>
		</form>
	</div>
	<!---->
	<div class=" d-dibu-pinglun {if $_GET['tan']=='1'} {else} d-container{/if}">
		<div class="row {$_GET['tan']}">
			<div class="{if $fengges['fengge'] == 1}col-md-8{else}col-md-8{/if} col-xs-12">
				<div class="d-beijing-baise d-kuan {if $_GET['tan'] == 1} d-neikuang-30-30 {else} d-neikuang-30-30 d-kuang-pinglun{/if} d-yuanjiao-bianhua-10-10"
				{if $_GET['tan'] == 1}style="width: 370px;margin-left: -10px;"{else}{/if}
				>
					<div class=" d-yuanjiao-10 ">
						<!---->
						<div class="d-beijing-baise " id="dr_post_form">
							<form class="ds_form_post form" method="post" id="myform_comment">
								{dr_form_hidden()}
								{if $myfield}
								<div class="ds-myfield form-horizontal">
									<div class="form-body">
										{$myfield}
									</div>
								</div>
								{/if}
								{if $review}
								<style>
									.ds-avatar-top { margin-top: 10px; }
								</style>
								<div class="ds-review" id="dr_review_post">
									<ul>
										{loop $review.option $i $name}
										<li>
											<input id="dr_review_option_{$i}" type="hidden" name="review[{$i}]" value="0">
											<span class="opname">{$name}：</span>
											<span class="commstar">
												{loop $review.value $ii $v}
												<a id="dr_review_value_{$i}_{$ii}" class="dr_review_value_{$i} star{$ii}" href="javascript:dr_review_value({$i}, {$ii});" title="{$v}">&nbsp;</a>
												{/loop}
											</span>
										</li>
										{/loop}
									</ul>
								</div>
								<div class="ds-clear"></div>
								{/if}
								<div class="d-kuan d-buhuanhang " id="d-zuobian-pinglun-yincang">
									<div class="col-lg-9 col-ms-9 col-xs-7">
										<div class="d-kuan d-wenzi-juzhong d-quxian-0">
											<a 
											{if $member}
											id="d-youbian-pinglun-xianshi"
											{else}
											onclick="javascript:showDialog();"
											{/if}
											>
												<input type="text" class="form-control-ding-qingchun d-yuanjiao-50" placeholder="聊聊您的见解...">
												<!--div class=" d-kuan-40 d-yuanjiao-50  d-kuan-juzhong">
													<img src="{HOME_THEME_PATH}quan/img/pinglun.png" width="30" class="d-shang-4 d-kuan-juzhong"/>
												</div>
												<div class="d-shang-2 d-wenzi-12">
													评论 {intval($comments)}
													
												</div-->
											</a>
										</div>
									</div>
									
									<div class="col-lg-1 col-ms-1 col-xs-2">
										
										<div class="d-kuan d-wenzi-juzhong d-quxian-0" style="margin-bottom: -20px;">
											<a  
											{if $member}
											id="tag_zan_{$id}" data-id="{$id}" class="tag_zan_dibu" 
											{else}
											onclick="javascript:showDialog();"
											{/if}
											>
												{dr_quan_tag_zan_dibu($id,$zan)}
												<span class="badge d-beijing-lvse-dy dr_notice_num d-tishis-pinglun">{intval($zan)}</span>
											</a>
											
											<!--{$id} - 点赞 <span class="d-shang-4 d-wenzi-12 d-zitiyanse-hui" {if $member}id="module_zan_{$id}{/if}">
											 {intval($zan)}
											</span>-->
										</div>
										
									</div>
									<div class="col-lg-1 col-ms-1 col-xs-2">
										<div class="d-kuan d-wenzi-juzhong d-quxian-0" style="margin-bottom: -20px;">
											<a 
											{if $member}
											id="tag_favorite_{$id}" data-id="{$id}" class="tag_favorite_dibu "
											{else}
											onclick="javascript:showDialog();"
											{/if}
											>
												{dr_quan_tag_favorite_dibu($id,$favorites)}
												<span class="badge d-beijing-lvse-dy dr_notice_num d-tishis-pinglun">{intval($favorites)}</span>
											</a>
											<!--收藏 <span class="d-shang-4 d-wenzi-12 d-zitiyanse-hui" {if $member}id="module_favorite_{$id}"{/if}>
											 {intval($favorites)}
											</span>-->
										</div>
									</div>
									
									<div class="col-lg-1 col-ms-1 col-xs-2">
										<div class="d-kuan d-wenzi-juzhong d-quxian-0" onclick="javascript:d_fenxiang();">
											<div class=" d-kuan-40 d-yuanjiao-50 d-kuan-juzhong">
												<img src="{HOME_THEME_PATH}quan/img/fenxiang2.png" width="30" class="d-shang-4 d-kuan-juzhong"/>
											</div>
											<!--div class="d-shang-2 d-wenzi-12">分享</div-->
										</div>
									</div>
								</div>
								<div id="d-youbian-pinglun">
								
									<div class="d-kuan d-buhuanhang ">
										<div class="d-kuan-40 ">
											<img src="{dr_avatar($member.uid)}" width="38" class="d-yuanjiao-50">
										</div>
										<div class="d-kuan d-zuo-10 d-you-10">
											<textarea class="J_CmFormField form-control" name="content" placeholder="说说您的想法…"></textarea>
										</div>
										<div class="d-kuan-50">
											<div class="">
												<button class="d-fabu" type="button" onclick="dr_post_comment()">
													<img src="{HOME_THEME_PATH}{MOD_DIR}/img/fabu1.png" width="35" class="d-yuanjiao-10"/>
												</button>
											</div>
											
										</div>
										<div class="d-clear"></div>
									</div>
									
									<div class="d-clear"></div>
									<div class="d-kuan">
										<div class="d-shang-5 d-zuo-50">
											<a class="ds-toolbar-button ds-add-emote" onclick="dr_show_bq()" title="插入表情"></a>
										</div>
										<div class="d-wenzi-18 pull-right d-zuoyou-20 d-shang-10" id="d-guanbi-pinglun"><i class="bi bi-x-circle-fill"></i></div>
									</div>
								</div>
								<div class="ds-clear"></div>
								
							</form>
							
						</div>
						
					</div>
				</div>
			</div>
		</div>
	</div>

    <div class="d-kuan {if $fengges['fengge'] == 1}d-shang-20{else}d-shang-20{/if}">
    	<div class="col-xs-3 d-hanggao-30">
    		<a class="ds-comments-tab-duoshuo ds-current" href="javascript:void(0);">
    		    <span class="ds-highlight">{$commnets}</span>条
    		</a>
    	</div>
    	<div class="col-xs-3 d-wenzi-juzhong d-wenzi-16">
    		<a class="ds-order-desc {if !$type}ds-current d-jiacu{/if}" href="javascript:{$js}(0, 1);">
    		    最新
    		</a>
    	</div>
    	<div class="col-xs-3 d-wenzi-juzhong d-wenzi-16">
    		<a class="ds-order-asc {if $type==1}ds-current d-jiacu{/if}" href="javascript:{$js}(1, 1);">
    		    最早
    		</a>
    	</div>
    	<div class="col-xs-3">
    		
    	</div>
    	<div class="d-clear"></div>
    </div>
    {php $pinglun = '1_'.MOD_DIR.'_form_son_comment';}
    <ul id="dr_comment_list" class="ds-comments">

        {loop $list $t}
            {if $member.id == $t.uid}
			    <!--第一层-->
			    <div class="d-kuan d-buhuanhang d-shang-20 d-neikuang-10">
			    	<div class="d-kuan-40">
			    		
			    	</div>
			    	<div class="d-kuan d-zuo-10 d-you-10 ">
						
			    		<div class="d-zitiyanse-hui d-xia-10">
						{php $pkbiaoqian=\Phpcmf\Service::M()->db->table($pkbiaoqians)->where('cid', $id)->where('uid', $t.uid)->get()->getRowArray();}
						{if $pkbiaoqian['pkfang']==1}
						    <span class="d-zuo-10 pull-right">
						    	<span class="d-neikuang-1-5 d-wenzi-10 d-yuanjiao-5 d-zitiyanse-bai" style="background-color: #91bed5;">蓝 方</span>
						    </span>
						{elseif $pkbiaoqian['pkfang']==2}
							<span class="d-zuo-10 pull-right">
								<span class="d-neikuang-1-5 d-wenzi-10 d-yuanjiao-5 d-zitiyanse-bai" style="background-color: #f1785a;">红 方</span>
							</span>
						{/if}
			    		{if $t.uid == $fengges['uid']}
							<span class="d-zuo-10 pull-right">
								<span class="d-neikuang-1-5 d-wenzi-10 d-beijing-hei d-yuanjiao-5 d-zitiyanse-bai">帖 主</span>
							</span>
						{/if}
			    		<span class="pull-right d-zuo-10">{$t.author}</span> <span class="d-wenzi-12 pull-right">{dr_fdate($t.inputtime)}-{$t.id}</span>
			    		<!--屏蔽-->
			    		<div class="pull-right " style="z-index: 999;">
			    			<div class="dropdown d-you-10 " >
			    				<a class="d-zuo-10" id="d-lahei" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
			    					<i class="fa fa-eye-slash d-wenzi-14 d-zitiyanse-hui-ca"></i>
			    				</a>
			    				<ul class="dropdown-menu " aria-labelledby="d-lahei" >
			    					<li><a  id="laheipinglunuidan" class="laheipinglunuid d-beijing-baise" data-uid="{$t.uid}"><span class="d-jiacu"><i class="fa fa-eye-slash d-wenzi-16"></i> 拉黑用户</span></br><span class="d-wenzi-12 ">不再看TA的所有帖子和评论</span></a></li>
			    					<li><a  id="laheipinglunan" class="laheipinglun d-beijing-baise" data-pid="{$t.id}"><i class="fa fa-eye-slash d-wenzi-16"></i><span class="d-jiacu"> 屏蔽评论</span></br><span class="d-wenzi-12 ">不再看这条评论</span></a></a></li>
			    				</ul>
			    			</div>
			    		</div>
			    		<!--屏蔽-->
						<div class="d-clear"></div>
						
						</div>
			    		<div class="d-clear"></div>
			    		<div class="d-beijing-hei-d9 pull-right d-beijing-baise d-neikuang-10 d-yuanjiao-10 d-huanhang d-wenzi-16 d-kuan-0 d-hanggao-24 d-a-hei">
			    			
							<a class="d-p-buhuanghang" href="javascript:void(0);" onclick="dr_reply_show_erji({$t.id}, '{$t.author}', {$t.id}, '{dr_strcut(dr_clearhtml($t.content), 20)}')">
			    			{dr_replace_emotion(nl2br(trim($t.content)))}
			    			</a>
							{if $dashangpinglunkaiguan==0}
							<img onclick="d_dashang_pinglun({$t.id}, '{$t.author}', {$t.id}, '{dr_strcut(dr_clearhtml($t.content), 20)}')" src="{HOME_THEME_PATH}qingchun/img/dashang10.png" width="16" height="16" class="d-yuanjiao-10 d-zuo-10"/>
			                {/if}
			    			<div class="d-clear"></div>
			    			
			    		</div>
						<div class="d-div-you"></div>
			    		<div class="d-clear"></div>
			    	</div>
			    	<div class="d-kuan-40">
			    		<img src="{dr_avatar($t.uid)}" width="40" class="d-yuanjiao-50">
			    	</div>
			    	<div class="d-clear"></div>
			    </div>
			    <div class="ds-replybox2" id="dr_reply_{$t.id}" style="display:none;">
			    </div>
			    <!--第二层-->
			    {if $t.rlist}
			        {loop $t.rlist $r}
			    		<div class="d-kuan d-buhuanhang d-neikuang-10-2">
			    			<div class="d-kuan-50">
			    				
			    			</div>
			    			<div class="d-kuan d-zuo-10 d-you-10 ">
			    				
			    				{if dr_comment_is_reply($is_reply, $member, $r.uid)}
			    				<!--a class="ds-post-reply" href="javascript:void(0);" onclick="dr_reply_show({$t.id}, '{$t.author}', {$t.id})">
			    					<span class="ds-ui-icon"></span>
			    					回复({count($t.rlist)})
			    				</a-->
			    				{/if}
			    				<div class="d-beijing-hei-e2 d-neikuang-10 d-yuanjiao-10 d-huanhang d-wenzi-16 d-kuan-0 d-hanggao-24 d-a-hui-82 pull-right">
			    					<img src="{dr_avatar($r.uid)}" width="20" class="d-yuanjiao-50 d-zuo-10"> 
			    					{if $r.uid == $index['uid']}
            							<span class="">
            								<span class="d-neikuang-1-5 d-wenzi-10 d-beijing-hei-cf d-yuanjiao-5 ">帖 主</span>
            							</span>
            						{/if}
			    					<a class="d-p-buhuanghang" href="javascript:void(0);" onclick="dr_reply_show_erji({$r.id}, '{$r.author}', {$r.id}, '{dr_strcut(dr_clearhtml($r.content), 20)}')">
			    					{dr_replace_emotion(nl2br(trim($r.content)))}
			    					<span class="d-wenzi-12">{dr_fdate($r.inputtime)}</span>
			    					</a>
									{if $dashangpinglunkaiguan==0}
									<img onclick="d_dashang_pinglun({$r.id}, '{$r.author}', {$r.id}, '{dr_strcut(dr_clearhtml($r.content), 20)}')" src="{HOME_THEME_PATH}qingchun/img/dashang10.png" width="16" height="16" class="d-yuanjiao-10 d-zuo-10"/>
			    					{/if}
			    					<div class="d-clear"></div>
			    					
			    				</div>
			    				<div class="d-clear"></div>
			    				
			    			</div>
			    			<div class="d-kuan-50">
								<!--屏蔽-->
								<div class="pull-right " style="z-index: 999;">
									<div class="dropdown d-you-10 " >
										<a class="d-zuo-10" id="d-lahei" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
											<i class="fa fa-eye-slash d-wenzi-14 d-zitiyanse-hui-ca"></i>
										</a>
										<ul class="dropdown-menu pull-right" aria-labelledby="d-lahei" >
											<li><a  id="laheipinglunuidan" class="laheipinglunuid d-beijing-baise" data-uid="{$r.uid}"><span class="d-jiacu"><i class="fa fa-eye-slash d-wenzi-16"></i> 拉黑用户</span></br><span class="d-wenzi-12 ">不再看TA的所有帖子和评论</span></a></li>
											<li><a  id="laheipinglunan" class="laheipinglun d-beijing-baise" data-pid="{$r.id}"><i class="fa fa-eye-slash d-wenzi-16"></i><span class="d-jiacu"> 屏蔽评论</span></br><span class="d-wenzi-12 ">不再看这条评论</span></a></a></li>
										</ul>
									</div>
								</div>
								<!--屏蔽-->
			    			</div>
			    			<div class="d-clear"></div>
			    		</div>
			    		<div class="ds-replybox2" id="dr_reply_{$r.id}" style="display:none;">
			    		</div>
			    		<!--第三层-->
			    		{table table=$pinglun cid=$id reply=$r.id num=200 order=inputtime_asc return=huifusan}
			    			<div class="d-kuan d-buhuanhang d-neikuang-10-2">
			    				<div class="d-kuan-100">
			    					
			    				</div>
			    				<div class="d-kuan d-zuo-10 d-you-10 ">
			    					
			    					{if dr_comment_is_reply($is_reply, $member, $huifusan.uid)}
			    					<!--a class="ds-post-reply" href="javascript:void(0);" onclick="dr_reply_show({$t.id}, '{$t.author}', {$t.id})">
			    						<span class="ds-ui-icon"></span>
			    						回复({count($t.rlist)})
			    					</a-->
			    					{/if}
			    					<div class="d-beijing-hei-cf d-neikuang-10-2 d-yuanjiao-10 d-huanhang d-wenzi-16 d-kuan-0 d-hanggao-24 d-a-hui pull-right">
			    						<img src="{dr_avatar($huifusan.uid)}" width="20" class="d-yuanjiao-50"> 
			    						{if $huifusan.uid == $index['uid']}
                							<span class="">
                								<span class="d-neikuang-1-5 d-wenzi-10 d-beijing-hei-e2 d-yuanjiao-5 ">帖 主</span>
                							</span>
                						{/if}
			    						<a class="d-p-buhuanghang" href="javascript:void(0);" onclick="dr_reply_show_erji({$r.id}, '{$huifusan.author}', {$r.id}, '{dr_strcut(dr_clearhtml($huifusan.content), 20)}')">
			    						{dr_replace_emotion(nl2br(trim($huifusan.content)))}
			    						<span class="d-wenzi-12">{dr_fdate($huifusan.inputtime)}</span>
			    						</a>
										{if $dashangpinglunkaiguan==0}
										<img onclick="d_dashang_pinglun({$huifusan.id}, '{$huifusan.author}', {$huifusan.id}, '{dr_strcut(dr_clearhtml($huifusan.content), 20)}')" src="{HOME_THEME_PATH}qingchun/img/dashang10.png" width="16" height="16" class="d-yuanjiao-10 d-zuo-10"/>
										{/if}
			    						<div class="d-clear"></div>
			    						
			    					</div>
			    					<div class="d-clear"></div>
			    					
			    				</div>
			    				<div class="d-kuan-50">
									<!--屏蔽-->
									<div class="pull-right " style="z-index: 999;">
										<div class="dropdown d-you-10 " >
											<a class="d-zuo-10" id="d-lahei" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
												<i class="fa fa-eye-slash d-wenzi-14 d-zitiyanse-hui-ca"></i>
											</a>
											<ul class="dropdown-menu pull-right" aria-labelledby="d-lahei" >
												<li><a  id="laheipinglunuidan" class="laheipinglunuid d-beijing-baise" data-uid="{$huifusan.uid}"><span class="d-jiacu"><i class="fa fa-eye-slash d-wenzi-16"></i> 拉黑用户</span></br><span class="d-wenzi-12 ">不再看TA的所有帖子和评论</span></a></li>
												<li><a  id="laheipinglunan" class="laheipinglun d-beijing-baise" data-pid="{$huifusan.id}"><i class="fa fa-eye-slash d-wenzi-16"></i><span class="d-jiacu"> 屏蔽评论</span></br><span class="d-wenzi-12 ">不再看这条评论</span></a></a></li>
											</ul>
										</div>
									</div>
									<!--屏蔽-->
			    				</div>
			    				<div class="d-clear"></div>
			    			</div>
			    			<div class="ds-replybox2" id="dr_reply_{$huifusan.id}" style="display:none;">
			    			</div>
			    		{/table}
			    	{/loop}
			    {/if}
			{else}
			    <!--他人评论-->
				<div class="d-kuan d-buhuanhang d-shang-20 d-neikuang-10">
					<div class="d-kuan-40">
						<img src="{dr_avatar($t.uid)}" width="40" class="d-yuanjiao-50">
					</div>
					<div class="d-kuan d-zuo-10 d-you-10 ">
						<div class="d-zitiyanse-hui">
						{php $pkbiaoqian=\Phpcmf\Service::M()->db->table($pkbiaoqians)->where('cid', $id)->where('uid', $t.uid)->get()->getRowArray();}
						{if $pkbiaoqian['pkfang']==1}
						    <span class="">
						    	<span class="d-neikuang-1-5 d-wenzi-10 d-yuanjiao-5 d-zitiyanse-bai" style="background-color: #91bed5;">蓝 方</span>
						    </span>
						{elseif $pkbiaoqian['pkfang']==2}
							<span class=" ">
								<span class="d-neikuang-1-5 d-wenzi-10 d-yuanjiao-5 d-zitiyanse-bai" style="background-color: #f1785a;">红 方</span>
							</span>
						{/if}
						{if $t.uid == $index['uid']}
							<span class="">
								<span class="d-neikuang-1-5 d-wenzi-10 d-beijing-hei d-yuanjiao-5 d-zitiyanse-bai">帖 主</span>
							</span>
						{/if}
						
						<span>{$t.author}</span> <span class="d-wenzi-12">{dr_fdate($t.inputtime)}</span>
						<!--屏蔽-->
						<div class="pull-right " style="z-index: 999;">
							<div class="dropdown d-you-10 " >
								<a class="d-zuo-10" id="d-lahei" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
									<i class="fa fa-eye-slash d-wenzi-14 d-zitiyanse-hui-ca"></i>
								</a>
								<ul class="dropdown-menu pull-right" aria-labelledby="d-lahei" >
									<li><a  id="laheipinglunuidan" class="laheipinglunuid d-beijing-baise" data-uid="{$t.uid}"><span class="d-jiacu"><i class="fa fa-eye-slash d-wenzi-16"></i> 拉黑用户</span></br><span class="d-wenzi-12 ">不再看TA的所有帖子和评论</span></a></li>
									<li><a  id="laheipinglunan" class="laheipinglun d-beijing-baise" data-pid="{$t.id}"><i class="fa fa-eye-slash d-wenzi-16"></i><span class="d-jiacu"> 屏蔽评论</span></br><span class="d-wenzi-12 ">不再看这条评论</span></a></a></li>
								</ul>
							</div>
						</div>
						<!--屏蔽-->
						</div>
						<div class="d-clear"></div>
						{if dr_comment_is_reply($is_reply, $member, $t.uid)}
						<!--a class="ds-post-reply" href="javascript:void(0);" onclick="dr_reply_show({$t.id}, '{$t.author}', {$t.id})">
							<span class="ds-ui-icon"></span>
							回复({count($t.rlist)})
						</a-->
						{/if}
						<div class="d-shang-10 {if $fengges['fengge'] == 1} d-beijing-baise{else} d-beijing-baise{/if} d-neikuang-10 d-yuanjiao-10 d-huanhang d-wenzi-16 d-kuan-0 d-hanggao-24 d-a-hei">
							<a class="d-p-buhuanghang" href="javascript:void(0);" onclick="dr_reply_show_erji({$t.id}, '{$t.author}', {$t.id}, '{dr_strcut(dr_clearhtml($t.content), 20)}')">
							{dr_replace_emotion(nl2br(trim($t.content)))}
							</a>
							{if $dashangpinglunkaiguan==0}
							<img onclick="d_dashang_pinglun({$t.id}, '{$t.author}', {$t.id}, '{dr_strcut(dr_clearhtml($t.content), 20)}')" src="{HOME_THEME_PATH}qingchun/img/dashang10.png" width="16" height="16" class="d-yuanjiao-10 d-zuo-10"/>
							{/if}
							<div class="d-clear"></div>
							
						</div>
						<div class="d-clear"></div>
						
					</div>
					<div class="d-kuan-40">
					</div>
					<div class="d-clear"></div>
				</div>

				<div class="ds-replybox2 " id="dr_reply_{$t.id}" style="display:none;">
				</div>
				<!--第二层-->
				{if $t.rlist}
				<ul class="">
				    {loop $t.rlist $r}
						<div class="d-kuan d-buhuanhang d-neikuang-10-2">
							<div class="d-kuan-50">
								<!--屏蔽-->
								<div class="pull-right " style="z-index: 999;">
									<div class="dropdown d-you-10 " >
										<a class="d-zuo-10" id="d-lahei" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
											<i class="fa fa-eye-slash d-wenzi-14 d-zitiyanse-hui-ca"></i>
										</a>
										<ul class="dropdown-menu " aria-labelledby="d-lahei" >
											<li><a  id="laheipinglunuidan" class="laheipinglunuid d-beijing-baise" data-uid="{$r.uid}"><span class="d-jiacu"><i class="fa fa-eye-slash d-wenzi-16"></i> 拉黑用户</span></br><span class="d-wenzi-12 ">不再看TA的所有帖子和评论</span></a></li>
											<li><a  id="laheipinglunan" class="laheipinglun d-beijing-baise" data-pid="{$r.id}"><i class="fa fa-eye-slash d-wenzi-16"></i><span class="d-jiacu"> 屏蔽评论</span></br><span class="d-wenzi-12 ">不再看这条评论</span></a></a></li>
										</ul>
									</div>
								</div>
								<!--屏蔽-->
							</div>
							<div class="d-kuan d-zuo-10 d-you-10 ">
								
								{if dr_comment_is_reply($is_reply, $member, $r.uid)}
								<!--a class="ds-post-reply" href="javascript:void(0);" onclick="dr_reply_show({$t.id}, '{$t.author}', {$t.id})">
									<span class="ds-ui-icon"></span>
									回复({count($t.rlist)})
								</a-->
								{/if}
								<div class="d-beijing-hei-e2 d-neikuang-10 d-yuanjiao-10 d-huanhang d-wenzi-16 d-kuan-0 d-hanggao-24 d-a-hui-82">
									<img src="{dr_avatar($r.uid)}" width="20" class="d-yuanjiao-50"> 
									{if $r.uid == $index['uid']}
            							<span class="">
            								<span class="d-neikuang-1-5 d-wenzi-10 d-beijing-hei-cf d-yuanjiao-5 ">帖 主</span>
            							</span>
            						{/if}
									<a class="d-p-buhuanghang" href="javascript:void(0);" onclick="dr_reply_show_erji({$r.id}, '{$r.author}', {$r.id}, '{dr_strcut(dr_clearhtml($r.content), 20)}')">
									{dr_replace_emotion(nl2br(trim($r.content)))}
									<span class="d-wenzi-12">{dr_fdate($r.inputtime)}</span>
									</a>
									{if $dashangpinglunkaiguan==0}
									<img onclick="d_dashang_pinglun({$r.id}, '{$r.author}', {$r.id}, '{dr_strcut(dr_clearhtml($r.content), 20)}')" src="{HOME_THEME_PATH}qingchun/img/dashang10.png" width="16" height="16" class="d-yuanjiao-10 d-zuo-10"/>
									{/if}
									<div class="d-clear"></div>
									
								</div>
								<div class="d-clear"></div>
								
							</div>
							<div class="d-kuan-40">
							</div>
							<div class="d-clear"></div>
						</div>
						<div class="ds-replybox2" id="dr_reply_{$r.id}" style="display:none;">
						</div>
						<!--第三层-->
						{table table=$pinglun cid=$id reply=$r.id num=200 order=inputtime_asc return=huifusan}
							<div class="d-kuan d-buhuanhang d-neikuang-10-2">
								<div class="d-kuan-100">
									<!--屏蔽-->
									<div class="pull-right " style="z-index: 999;">
										<div class="dropdown d-you-10 " >
											<a class="d-zuo-10" id="d-lahei" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
												<i class="fa fa-eye-slash d-wenzi-14 d-zitiyanse-hui-ca"></i>
											</a>
											<ul class="dropdown-menu " aria-labelledby="d-lahei" >
												<li><a  id="laheipinglunuidan" class="laheipinglunuid d-beijing-baise" data-uid="{$huifusan.uid}"><span class="d-jiacu"><i class="fa fa-eye-slash d-wenzi-16"></i> 拉黑用户</span></br><span class="d-wenzi-12 ">不再看TA的所有帖子和评论</span></a></li>
												<li><a  id="laheipinglunan" class="laheipinglun d-beijing-baise" data-pid="{$huifusan.id}"><i class="fa fa-eye-slash d-wenzi-16"></i><span class="d-jiacu"> 屏蔽评论</span></br><span class="d-wenzi-12 ">不再看这条评论</span></a></a></li>
											</ul>
										</div>
									</div>
									<!--屏蔽-->
								</div>
								<div class="d-kuan d-zuo-10 d-you-10 ">
									
									{if dr_comment_is_reply($is_reply, $member, $huifusan.uid)}
									<!--a class="ds-post-reply" href="javascript:void(0);" onclick="dr_reply_show({$t.id}, '{$t.author}', {$t.id})">
										<span class="ds-ui-icon"></span>
										回复({count($t.rlist)})
									</a-->
									{/if}
									<div class="d-beijing-hei-cf d-neikuang-10-2 d-yuanjiao-10 d-huanhang d-wenzi-16 d-kuan-0 d-hanggao-24 d-a-hui">
										<img src="{dr_avatar($huifusan.uid)}" width="20" class="d-yuanjiao-50"> 
										{if $huifusan.uid == $index['uid']}
                							<span class="">
                								<span class="d-neikuang-1-5 d-wenzi-10 d-beijing-hei-e2 d-yuanjiao-5 ">帖 主</span>
                							</span>
                						{/if}
										<a class="d-p-buhuanghang" href="javascript:void(0);" onclick="dr_reply_show_erji({$r.id}, '{$huifusan.author}', {$r.id}, '{dr_strcut(dr_clearhtml($huifusan.content), 20)}')">
										{dr_replace_emotion(nl2br(trim($huifusan.content)))}
										<span class="d-wenzi-12">{dr_fdate($huifusan.inputtime)}</span>
										</a>
										{if $dashangpinglunkaiguan==0}
										<img onclick="d_dashang_pinglun({$huifusan.id}, '{$huifusan.author}', {$huifusan.id}, '{dr_strcut(dr_clearhtml($huifusan.content), 20)}')" src="{HOME_THEME_PATH}qingchun/img/dashang10.png" width="16" height="16" class="d-yuanjiao-10 d-zuo-10"/>
										{/if}
										<div class="d-clear"></div>
										
									</div>
									<div class="d-clear"></div>
									
								</div>
								<div class="d-kuan-40">
								</div>
								<div class="d-clear"></div>
							</div>
							<div class="neikuang-pinglun_{$t.id}" id="dr_reply_{$huifusan.id}" style="display:none;">
							</div>
							
						{/table}
					{/loop}
				</ul>
				{/if}
			{/if}
        {/loop}
    </ul>

    <!--div class="ds-paginator">
        <div class="ds-border"> </div>
        {$ajax_pages}
    </div-->
    <div class="d-kuan d-gao-80"></div>


    <a name="respond"></a>
    <div id="ds-smilies-tooltip" style="width: {if IS_PC}370{else}200{/if}px;display: none;">
        <div class="ds-smilies-container">
            <ul>
                {loop $emotion $name $file}
                <li>
                    <img src="{$file}" alt="[{$name}]" title="[{$name}]">
                </li>
                {/loop}
            </ul>
        </div>
        <div id="ds-foot5">
            &nbsp;&nbsp;&nbsp;
        </div>
    </div>
</div>
<div class="d-kuan d-gao-80" id="pingling"></div>


{if $dashangkaiguan == 0}
    {if $tiedashangkai == 0}
		
		
		<div class="d-dashang-pinglun d-xiala-dashang" style="display: none;">
			<div class="d-container">
				<div class="d-row">
					<div class="d-col-md-8-juzhong d-quxian-0 d-a-baise">
						<div class="col-xs-12 ">
						<div class="col-xs-12 d-wenzi-juzhong d-quxian-0 d-shang-10">
							<div class="d-kuan d-neikuang-10" onclick="javascript:d_dashang_pinglun();"><i class="bi bi-x-circle-fill d-wenzi-18"></i></div>
						</div>
						{if $dashangmoshi == '0'}
						<form action="{SITE_MURL}index.php" method="get" class="form-horizontal0" >
							<input type="hidden" name="s" value="quan" />
							<input type="hidden" name="c" value="dashangpinglun" />
							<input type="hidden" name="m" value="index" />
							<input type="hidden" id="pinglunid" name="id" value="" />
							<div>
								<div class="col-xs-12">
									<div onclick="javascript:dashangpinglun(1,1);" id="dapinglun1" data-id="1" class="d-dashang-xuanze-pinglun das1 col-md-4 col-xs-4 mr-2 d-xia-10 btn-default dashanganpinglun">
									<input type="radio" name="money2" id="catidpinglun1" value="{$dashangyi}" checked>{$dashangyi} 元</div>
									<div onclick="javascript:dashangpinglun(2,2);" id="dapinglun2" data-id="2" class="d-dashang-xuanze-pinglun das2 col-md-4 col-xs-4 mr-2 d-xia-10 btn btn-default">
									<input type="radio" name="money2" id="catidpinglun2" value="{$dashanger}">{$dashanger} 元</div>
									<div onclick="javascript:dashangpinglun(3,3);" id="dapinglun3" data-id="3" class="d-dashang-xuanze-pinglun das3 col-md-4 col-xs-4 mr-2 d-xia-10 btn btn-default">
									<input type="radio" name="money2" id="catidpinglun3" value="{$dashangsan}">{$dashangsan} 元</div>
									<div onclick="javascript:dashangpinglun(4,4);" id="dapinglun4" data-id="4" class="d-dashang-xuanze-pinglun das4 col-md-4 col-xs-4 mr-2 d-xia-10  btn btn-default">
									<input type="radio" name="money2" id="catidpinglun4" value="{$dashangsi}">{$dashangsi} 元</div>
									<div onclick="javascript:dashangpinglun(5,5);" id="dapinglun5" data-id="5" class="d-dashang-xuanze-pinglun das5 col-md-4 col-xs-4 mr-2  d-xia-10 btn btn-default">
									<input type="radio" name="money2" id="catidpinglun5" value="{$dashangwu}">{$dashangwu} 元</div>
									<div onclick="javascript:dashangpinglun(6,6);" id="dapinglun6" data-id="6" class="d-dashang-xuanze-pinglun col-md-4 col-xs-4 mr-2 d-xia-10 ">
										<input type="text" name="money" id="catidpinglun6" value="" class="form-controldashang-pinglun wenzijuzhong" placeholder="自定义" style="color: black;">
									</div>
								</div>
								<div class="col-xs-12">
									<button type="submit" class="btn btn-ms d-kuan"> 确认打赏 </button>
								</div>
							</div>
						</form>
						{elseif $dashangmoshi == '1'}
						<form action="{SITE_MURL}index.php" method="get" class="form-horizontal0">
							<input type="hidden" name="s" value="quan" />
							<input type="hidden" name="c" value="dashangpinglun" />
							<input type="hidden" name="m" value="jifen" />
							<input type="hidden" name="id" value="{$id}" />
							
							<div>
								<div class="col-xs-12">
									<div onclick="javascript:dashangpinglun(1,1);" id="dapinglun1" data-id="1" class="d-dashang-xuanze-pinglun das1 col-md-4 col-xs-4 mr-2 d-xia-10 btn-default dashanganpinglun">
									<input type="radio" name="money2" id="catidpinglun1" value="{$dashangjifenyi}" checked>{$dashangjifenyi} {SITE_SCORE}</div>
									<div onclick="javascript:dashangpinglun(2,2);" id="dapinglun2" data-id="2" class="d-dashang-xuanze-pinglun das2 col-md-4 col-xs-4 mr-2 d-xia-10 btn btn-default">
									<input type="radio" name="money2" id="catidpinglun2" value="{$dashangjifener}">{$dashangjifener} {SITE_SCORE}</div>
									<div onclick="javascript:dashangpinglun(3,3);" id="dapinglun3" data-id="3" class="d-dashang-xuanze-pinglun das3 col-md-4 col-xs-4 mr-2 d-xia-10 btn btn-default">
									<input type="radio" name="money2" id="catidpinglun3" value="{$dashangjifensan}">{$dashangjifensan} {SITE_SCORE}</div>
									<div onclick="javascript:dashangpinglun(4,4);" id="dapinglun4" data-id="4" class="d-dashang-xuanze-pinglun das4 col-md-4 col-xs-4 mr-2 d-xia-10  btn btn-default">
									<input type="radio" name="money2" id="catidpinglun4" value="{$dashangjifensi}">{$dashangjifensi} {SITE_SCORE}</div>
									<div onclick="javascript:dashangpinglun(5,5);" id="dapinglun5" data-id="5" class="d-dashang-xuanze-pinglun das5 col-md-4 col-xs-4 mr-2  d-xia-10 btn btn-default">
									<input type="radio" name="money2" id="catidpinglun5" value="{$dashangjifenwu}">{$dashangjifenwu} {SITE_SCORE}</div>
									<div onclick="javascript:dashangpinglun(6,6);" id="dapinglun6" data-id="6" class="d-dashang-xuanze-pinglun col-md-4 col-xs-4 mr-2 d-xia-10 ">
										<input type="text" name="money" id="catidpinglun6" value="" class="form-controldashang wenzijuzhong" placeholder="自定义" style="color: black;">
									</div>
								</div>
								<div class="col-xs-12">
									<button type="submit" class="btn btn-ms d-kuan"> 确认打赏 </button>
								</div>
							</div>
						</form>
						{elseif $dashangmoshi == '2'}
						{/if}
						</div>
					</div>
				</div>
			</div>
			
		</div>
	{/if}
{/if}

<div id="ajax_poster"></div>
<style>
	.d-xiala-dashang {
	    z-index: 999999;
	    position: fixed;
	    bottom: 0px;
	    width: 100%;
	    height: 40%;
	    overflow: auto;
	    background: #ffffff;
	    right: 0;
	    left: 0;
	    box-shadow: 0 0 20px #d6d6d6;
	    background-color: rgba(255, 255, 255, 1.0);
	}
	.mt-checkbox>span, .mt-radio>span {
	    border: 1px solid transparent;
	    position: absolute;
	    top: 5px;
	    left: 5px;
	    height: 19px;
	    width: 19px;
	    background: #E6E6E6;
	}
	.dashangan {
	    text-align: center;
	    background: #ffffff;
	    background-color: #11d2b5;
	    padding: 6px 12px 0 12px;
	    height: 50px;
	    color: #ffffff;
	    line-height: 2.4;
	    font-size: 16px;
	    border-radius: 4px;
	}
	.btn-default.active, .btn-default:active, .btn-default:hover, .open>.btn-default.dropdown-toggle {
	    color: #ffffff;
	    background-color: #11d2b5;
	    border-color: #ffffff;
	}
	
	div.btn {
	    background: #f6f6f6;
	    padding: 6px 12px 0 12px;
	    height: 50px;
		border-color: #fff;
	}
	.btn:not(.btn-sm):not(.btn-lg) {
	    line-height: 2.5;
	}
	input {
	    -webkit-appearance: none;
	    -moz-appearance: none;
	    -o-appearance: none;
	    appearance: none;
	}
	.form-controldashang-pinglun {
	    width: 100%;
	    height: 35px;
	    padding: 6px 12px;
	    background-color: #fff;
	    border: 1px solid #E4E6EF;
	    color: #3F4254;
	    background-clip: padding-box;
	    border-radius: 5px;
	    -webkit-box-shadow: inset 0 1px 1px rgb(0 0 0 / 8%);
	    -webkit-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
	    -o-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
	    transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
	}
	.form-controldashang-pinglun:focus{
		
		border-color: blue;
		width: 100%;
		height: 35px;
		padding: 6px 12px;
		background-color: #fff;
		border: 1px solid #E4E6EF;
		color: #3F4254;
		background-clip: padding-box;
		border-radius: 5px;
		-webkit-box-shadow: inset 0 1px 1px rgb(0 0 0 / 8%);
		-webkit-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
		-o-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
		transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
	}
	.wenzijuzhong {
	    text-align: center;
	}
</style>


<style>
	.d-xiala-dashang-pinglun {
	    z-index: 999999;
	    position: fixed;
	    bottom: 0px;
	    width: 100%;
	    height: 70%;
	    overflow: auto;
	    background: #ffffff;
	    right: 0;
	    left: 0;
	    box-shadow: 0 0 20px #d6d6d6;
	    background-color: rgba(255, 255, 255, 1.0);
	}
	.d-tishis-pinglun {
	    margin-left: 20px;
	    margin-top: -70px;
		
	    width: 20px;
	}
	.form-control {
	    width: 100%;
	    height: 34px;
	    padding: 6px 12px;
	    background-color: #fff;
	    border: 1px solid #edeff7;
	    color: #3F4254;
	    background-clip: padding-box;
	    border-radius: 5px;
	    -webkit-box-shadow: inset 0 1px 1px rgb(0 0 0 / 8%);
	    -webkit-transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
	    -o-transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
	    transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
	}
	textarea.form-control {
	    height: 40px;
		transition: height .2s ease;
	    transition-delay:0.1s;
	}
	textarea:focus{
		height:100px;
		transition-delay:0s;
		border: 1px solid #f4f6ff;
	}
	.d-fabu {
		background-color: #fff;
		border: 1px solid #ffffff;
		border-radius: 5px;
	}
	.dierceng {
		background-color: #ff8000;
		border: 1px solid #ff8000;
		width: 60%;
		color: #ffffff;
		margin-left: 60px;
	}
	#ds-reset input {
	    display: inline;
	    margin: 0 0 0 0px;
	}
	.d-beijing-lvse-dy {
		{if $qingchunkaiqi}
			background-color: {$qingchunzhuse};
		{else}
			background-color: #3fc59f;
		{/if}
	    
	}
	.d-kuang-pinglun {
	    width:750px;
	}
	@media screen and (max-width: 900px) { /*褰撳睆骞曞昂瀵稿皬浜�1200px鏃讹紝搴旂敤涓嬮潰鐨凜SS鏍峰紡*/
    	.d-kuang-pinglun {
	        width:100%;
	    }
    }
	.dashanganpinglun {
	    text-align: center;
	    background: #ffffff;
	    background-color: #11d2b5;
	    padding: 6px 12px 0 12px;
	    height: 50px;
	    color: #ffffff;
	    line-height: 2.4;
	    font-size: 16px;
	    border-radius: 4px;
	}
</style>
<script>
	/*function dr_reply_show_erji_g() {
		$('.d-yincang-0').hide();
	}*/
	function dr_m_fabu1() {
		$('.mfabulei').show();
	}
	$('#d-youbian-pinglun').hide(); // 隐藏
	$('[id="d-youbian-pinglun-xianshi"]').click(function(){
		
		$('#d-youbian-pinglun').show(); // 显示
		$('#d-zuobian-pinglun-yincang').hide(); // 显示
		$('#d-youbian-pinglun textarea').focus(); 
		
	})
	$('[id="d-guanbi-pinglun"]').click(function(){
		$('#d-youbian-pinglun').hide(); // 显示
		$('#d-zuobian-pinglun-yincang').show(); // 显示
		
	})
	/*function d_dashang() {
		if ($('.d-dashang').is(':hidden')) {
			$('.d-dashang').show();
		} else {
			$('.d-dashang').hide();
		}
	}*/
	
		function d_dashang_pinglun(id,zuozhe,tid,neirong) {
			var newValue = id; // 你可以替换为你需要的值  
			$('#pinglunid').val(newValue);
			console.log('ddd',id);
			if ($('.d-dashang-pinglun').is(':hidden')) {
				$('.d-dashang-pinglun').show();
			} else {
				$('.d-dashang-pinglun').hide();
			}
		}
	
	
	function d_dashang_pinglun_1 (id,zuozhe,tid,neirong){
		$('.mfabulei').show();
		console.log('ddd',id);
	}
	function dashangpinglun(e,id) {
		//var id = $(this).data("id");
		
		var input = document.getElementById('catidpinglun'+e);
		input.checked=true;
		input.removeAttribute('checked');
		// 移除所有div的高亮类  

		$('.d-dashang-xuanze-pinglun').removeClass('dashanganpinglun');
		$("#dapinglun"+e).addClass('dashanganpinglun');
	
		$('.d-dashang-xuanze-pinglun').addClass('btn');
		
		$("#dapinglun"+e).removeClass('btn');
		$("#dapinglun6").removeClass('btn');
		$("#dapinglun6").removeClass('dashanganpinglun');
		if(e==6){
			// 移除id为catid1到catid5的radio按钮的checked属性  
			$('#catidpinglun1, #catidpinglun2, #catidpinglun3, #catidpinglun4, #catidpinglun5').prop('checked', false);  
		}
				 
	
	}
	//document.querySelector("#pingling0").scrollIntoView();
	$('[id="laheipinglunuidan"]').click(function(){
		var uid = $(this).data("uid");
	
		$.ajax({
			  type: "POST",
			  dataType: "json",
			  url: "{SITE_URL}index.php?s=member&app=quan&c=lahei&m=laheiuid",
			  data: 'touid='+uid,
			  success: function(data) {
				  dr_cmf_tips(data.code, data.msg);
			  },
			  error: function(HttpRequest, ajaxOptions, thrownError) {
				  layer.closeAll('loading');
				  alert(HttpRequest.responseText);
			  }
		});
	})
	$('[id="laheipinglunan"]').click(function(){
		var pid = $(this).data("pid");
	
		$.ajax({
			  type: "POST",
			  dataType: "json",
			  url: "{SITE_URL}index.php?s=member&app=quan&c=lahei&m=laheipinglun",
			  data: 'pid='+pid,
			  success: function(data) {
				  dr_cmf_tips(data.code, data.msg);
			  },
			  error: function(HttpRequest, ajaxOptions, thrownError) {
				  layer.closeAll('loading');
				  alert(HttpRequest.responseText);
			  }
		});
	})
	// 模块点赞底部
	$(".tag_zan_dibu").click(function(){
		
	    var id = $(this).data("id");
		console.log('dianzan',id);
	    $.get("{dr_url_prefix('index.php')}?s={MOD_DIR}&c=son&m=zan&id="+id, function(data){
	        dr_cmf_tips(data.code, data.msg.value + data.msg.jifen);
	        if (data.msg.value=="点赞成功") {
	        	$('#module_zan_'+id).html(data.data);
				$('#module_zan_ding_'+id).html(data.data);
	        	 $('#tag_zan_ding_'+id).html('<div class="d-zuo-10 d-shang-10 d-yuanjiao-50 d-wenzi-juzhong"><img src="{HOME_THEME_PATH}quan/img/zan2.png" width="30" class="d-shang-4"/></div><div class="d-shang-4 d-wenzi-12">已赞</div>'
	        	);
	        	
	        	$('#tag_zan_'+id).html('<div class="  d-yuanjiao-50 d-kuan-juzhong"><img src="{HOME_THEME_PATH}quan/img/zan2.png" width="30" class="d-shang-4 d-kuan-juzhong"/></div>'
	        	);
	        }else{
	        	$('#module_zan_'+id).html(data.data);
				$('#module_zan_ding_'+id).html(data.data);
	        	$('#tag_zan_ding_'+id).html('<div class="d-zuo-10 d-shang-10 d-gao-40 d-kuan-40 d-yuanjiao-50 d-wenzi-juzhong"><img src="{HOME_THEME_PATH}quan/img/zan.png" width="30" class="d-shang-4"/></div><div class="d-shang-4 d-wenzi-12">点赞</div>');
	        	$('#tag_zan_'+id).html('<div class="  d-yuanjiao-50 d-kuan-juzhong"><img src="{HOME_THEME_PATH}quan/img/zan.png" width="30" class="d-shang-4 d-kuan-juzhong"/></div>');
	        	
	        }
	    }, 'json');
	});
	// 模块收藏底部
	$(".tag_favorite_dibu").click(function(){
	    var id = $(this).data("id");
	    $.get("{dr_url_prefix('index.php')}?s={MOD_DIR}&c=son&m=quan&id="+id, function(data){
	        dr_cmf_tips(data.code, data.msg.value + data.msg.jifen);
	        if (data.msg.value=="收藏成功") {
				$('#module_favorite_'+id).html(data.data);
	            $('#tag_favorite_'+id).html('<div class=" d-yuanjiao-50 d-kuan-juzhong"><img src="{HOME_THEME_PATH}quan/img/shoucang5.png" width="30" class="d-shang-4 d-kuan-juzhong"/></div>'
				);
				$('#module_favorite_ding_'+id).html(data.data);
				 $('#tag_favorite_ding_'+id).html('<div class="d-zuo-10 d-shang-10 d-yuanjiao-50 d-wenzi-juzhong"><img src="{HOME_THEME_PATH}quan/img/shoucang5.png" width="30" class="d-shang-4"/></div><div class="d-shang-4 d-wenzi-12" >已藏{intval($favorites)} <div id="module_favorite_'+id+'>{intval($favorites)}</div></div>'
				);
	            
			}else{
				$('#module_favorite_'+id).html(data.data);
	            $('#tag_favorite_'+id).html('<div class="d-yuanjiao-50 d-kuan-juzhong"><img src="{HOME_THEME_PATH}quan/img/shoucang4.png" width="30" class="d-shang-4 d-kuan-juzhong"/></div>');
	            $('#module_favorite_ding_'+id).html(data.data);
	            $('#tag_favorite_ding_'+id).html('<div class="d-zuo-10 d-shang-10 d-yuanjiao-50 d-wenzi-juzhong"><img src="{HOME_THEME_PATH}quan/img/shoucang4.png" width="30" class="d-shang-4"/></div><div class="d-shang-4 d-wenzi-12" ">收藏</div>');
	            
			}
	    }, 'json');
	});
</script>